package com.enlorenz.core.annotation.base;

import java.util.ArrayList;
import java.util.List;

import com.enlorenz.common.util.CommonContants;
import com.enlorenz.core.annotation.Property;

/**
 * 参数注释包装类
 * @author lcb
 */
public class AnnoParamWrapper extends AnnoBaseWrapper{
	//实现类
	private String implClass; 
	
	//输入参数列表
	@Property(name="返回对象参数列表",desc="用于存放返回对象参数",
			impl=AnnoParamPropertyWrapper.class)
	private List<AnnoParamPropertyWrapper> paramPropertyList;
	/**
	 * 添加注释包装类
	 * @param wrapper 注释包装类
	 */
	public void addAnnoParamPropertyWrapper(AnnoParamPropertyWrapper wrapper){
		if(null == paramPropertyList){
			paramPropertyList=new ArrayList<AnnoParamPropertyWrapper>();
		}
		paramPropertyList.add(wrapper);
	}
	
	public String toString(){
		return "Param:"+super.toString()+CommonContants.WRAP_SYMBOL+"ParamList:"+
		paramPropertyList;
	}

	public String getImplClass() {
		return implClass;
	}

	public void setImplClass(String implClass) {
		this.implClass = implClass;
	}

	public List<AnnoParamPropertyWrapper> getParamPropertyList() {
		return paramPropertyList;
	}

	public void setParamPropertyList(
			List<AnnoParamPropertyWrapper> paramPropertyList) {
		this.paramPropertyList = paramPropertyList;
	}
	
}
